package com.qitmiaojie.service;


import com.qitmiaojie.controller.utils.Result;
import com.qitmiaojie.pojo.Menu;
import org.springframework.stereotype.Service;

@Service
public interface MenuService {
    /***
    * @description 查询所有菜单
    *
    * @return
    * @author
    * @date
    */
    Result QueryAlLMenu();
    /***
    * @description nav
    * @param username
    * @return
    * @author
    * @date
    */
    Result QueryNav(String username);
    /***
    * @description 根据id查询
    * @param id
    * @return
    * @author
    * @date
    */
    Result QueryMenuById(Integer id);
    /***
    * @description 添加菜单
    * @param menu
    * @return
    * @author
    * @date
    */
    Result AddMenu(Menu menu);

    Result UpdateMenu(Menu menu);

    Result DeleteMenu(Integer id);
}
